<template>
  <view class="">
    <u-card :title="title" :padding="10" :title-size="24">
      <view class="" slot="body">
        <view class="u-body-item u-flex u-p-b-0">
          <view class="u-body-item-title u-line-2">功能区目标：</view>
        </view>
        <view class="u-body-item u-flex u-p-b-0">
          <view class="u-body-item-title u-line-2">水质类别：</view>
        </view>
        <view class="u-body-item u-flex u-p-b-0">
          <view class="u-body-item-title u-line-2">水质情况：</view>
        </view>
      </view>
    </u-card>
    <u-card :title="title1" :padding="10" :title-size="24">
      <view class="" slot="body">
        <view class="u-body-item u-flex u-p-b-0">
          <view class="u-body-item-title u-line-2">河段河长：</view>
        </view>
        <view class="u-body-item u-flex u-p-b-0">
          <view class="u-body-item-title u-line-2">河长电话：</view>
        </view>
        <view class="u-body-item u-flex u-p-b-0">
          <view class="u-body-item-title u-line-2">消劣目标：</view>
          <view class="">不超过Ⅴ类</view>
        </view>
        <view class="u-body-item u-flex u-p-b-0">
          <view class="u-body-item-title u-line-2">设备编号：</view>
          <view class="">{{text}}</view>
        </view>
      </view>
    </u-card>
    <u-card :title="title1" :padding="10" :title-size="24">
      <view class="" slot="body">
        <view class="information">
          <view class="list">
            <view>化学需氧量</view>
            <view>米老鼠</view>
          </view>
          <view class="list">
            <view>氨氮</view>
            <view>米老鼠</view>
          </view>
          <view class="list">
            <view>溶解氧</view>
            <view>米老鼠</view>
          </view>
          <view class="list">
            <view>酸碱度</view>
            <view>米老鼠</view>
          </view>
        </view>
        <view class="inquire">
          <u-button size="mini">历史查询</u-button>
          <view class="">该站点功能区要求</view>
          <view class="box5">Ⅴ类</view>
        </view>
        <view class="">
          <view v-show="isShow">
              <uni-calendar 
              :data="none"
              :insert="true"
              :start-date="'2010-1-1'"
              :end-date="'2019-5-20'"
              @change="change"
               />
          </view>
        </view>
        <view class="querg" v-show="ispen">
          <view class="">
            <text class="bba" @click="fanhui">返回日历</text>
          </view>
          <view class="lists">
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
            <view class="items">
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
              <view class="item"></view>
            </view>
          </view>
        </view>
      </view>
    </u-card>
    <view class="minibox">
      <view class="box1">Ⅰ类</view>
      <view class="box2">Ⅱ类</view>
      <view class="box3">Ⅲ类</view>
      <view class="box4">Ⅳ类</view>
      <view class="box5">Ⅴ类</view>
      <view class="box6">劣Ⅴ</view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        title: '杭州F317',
        title1: '基本信息',
        title2: '实时数据',
        text: '',
        show: true,
        isShow: true,
        ispen: false
      };
    },
    methods: {
      change(e) {
        console.log(e)
        this.isShow = false
        this.ispen = true
      },
      fanhui() {
        this.ispen = false
        this.isShow = true
      }
    }
  };
</script>

<style scoped lang="scss">
  ::v-deep .uni-calendar-item__weeks-box-text{
    width: 17.59px;
    text-align: center;
    background-color: red;
  }
  
  .u-card-wrap {
    background-color: $u-bg-color;
    padding: 1px;
  }

  .u-body-item {
    font-size: 12px;
    color: #333;
    padding: 20rpx 10rpx;
  }
  
  .data {
    display: block;
  }
  
  .information {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    
    view {
      margin-top: 5px;
      width: 45%;
      height: 30px;
      background-color: #C0C0C0;
    }
  }
  
  .list {
    font-size: 12px;
    
    view {
      width: 100%;
      margin-top: 0;
      height: 15px;
      line-height: 15px;
      text-align: center;
    }
  }
  
  .minibox {
    display: flex;
    color: #ffffff;
    margin-top: 10px;
    
    view {
      margin-left: 20px;
      margin-bottom: 10px;
    }
  }
  
  .box1 {
    width: 40px;
    height: 20px;
    background-color: #afd5ec;
  }
  
  .box2 {
    width: 40px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #a0ebe0;
  }
  
  .box3 {
    width: 40px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #49deab;
  }
  
  .box4 {
    width: 40px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #20a18a;
  }
  
  .box5 {
    width: 40px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #cac82c;
  }
  
  .box6 {
    width: 40px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #ed171a;
  }
  
  .querg {
    margin-top: 10px;
  }
  
  .inquire {
    margin-top: 10px;
    display: flex;
    line-height: 27px;
    
    view {
      margin-left: 5px;
    }
  }
  
  .lists {
    display: flex;
    flex-wrap: wrap;
    width: 372px;
    height: 300px;
    
    .items {
      display: flex;
      flex-wrap: wrap;
      width: 13%;
      height: 45px;
      margin-left: 10px;
      margin-top: 10px;
      
      view {
        width: 50%;
        height: 50%;
        border: 1px solid #cccccc;
      }
    }
  }
  
  .bba {
    font-size: 12px;
    color: #ffffff;
    padding: 5px;
    background-color: #1890ff;
  }
</style>
